/*
 *  Copyright 2001-2004 The Apache Software Foundation
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */
package ar.uba.fi.posgrado.economy.dao;

import java.util.List;

import ar.uba.fi.posgrado.common.dao.GenericDAO;
import ar.uba.fi.posgrado.common.exception.PosgradoException;
import ar.uba.fi.posgrado.common.exception.PosgradoRuntimeException;
import ar.uba.fi.posgrado.common.model.Student;
import ar.uba.fi.posgrado.economy.model.BenefitStatus;
import ar.uba.fi.posgrado.economy.model.Debt;
import ar.uba.fi.posgrado.economy.model.DebtStatus;

/**
 * DAO para manejar la persistencia de {@link Debt Deudas}.<br>
 * 
 * @author pablo.tortorella
 * @see GenericDAO
 */
public interface DebtDAO extends GenericDAO<Debt> {
    
    /**
     * Busca las deudas por {@link BenefitStatus estado}.<br>
     * @param status
     * @return
     * @throws PosgradoRuntimeException
     * @throws PosgradoException
     * @deprecated Usar {@link GenericDAO#findByCriterions(List)}
     */
    @Deprecated
    public List<Debt> findAll(DebtStatus status) throws PosgradoRuntimeException,  PosgradoException;

    /**
     * Busca las deudas por {@link BenefitStatus estado} y 
     * {@link Student alumno}.<br>
     * @param status
     * @return
     * @throws PosgradoRuntimeException
     * @throws PosgradoException
     * @deprecated Usar {@link GenericDAO#findByCriterions(List)}
     */
    @Deprecated
    public List<Debt> findAll(DebtStatus status, Student student) throws PosgradoRuntimeException,  PosgradoException;
    
}
